#include "lh_button.h"

void LH_ButtonEve(void *widget)
{
    LH_WIDGET *DilgFoc = widget;
 
    if (DilgFoc->WidFlags & LH_WIDREDR)             
    {
        if (DilgFoc->WidFlags & LH_WIDFOC)
        {
            if (TcEve.NowEvent == TOUCH_START)      
            {
                if(*DilgFoc->Path1 != LH_NULL)
                    LH_ShowBmpAt(DilgFoc->Axis_X, DilgFoc->Axis_Y, DilgFoc->Path1);
                return;
            }
            else if (TcEve.NowEvent == TOUCH_STOP)  
            {
                if(*DilgFoc->Path2 != LH_NULL)
                    LH_ShowBmpAt(DilgFoc->Axis_X, DilgFoc->Axis_Y, DilgFoc->Path2);
                return;
            }
        }
        if(*DilgFoc->Path2 != LH_NULL)
            LH_ShowBmpAt(DilgFoc->Axis_X, DilgFoc->Axis_Y, DilgFoc->Path2);
    }
}


